package edu.fdzc.learn.mapper;

import edu.fdzc.learn.entity.Lesson;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LessonsMapper {

    void insert(Lesson lesson);

    void update(Lesson lesson);

    void delete(int id);

    Lesson findById(int id);

    List<Lesson> fingByCourseId(int courseId);

    List<Lesson> getall();
}
